import { defHttp } from '/@/utils/http/axios';

/**
 * 权属户管理的api
 *
 * @author lichenhui
 * @date 2024/03/21 11:24
 */
export class HouseholdApi {
  /**
   * 查看分页数据
   *
   * @author lichenhui
   * @date 2024/03/21 11:24
   */
  static findPage(params) {
    return defHttp.get({ url: '/household/page', params });
  }

  /**
   * 新增
   *
   * @author lichenhui
   * @date 2024/03/21 11:24
   */
  static add(params) {
    return defHttp.post({ url: '/household/add', params }, { isTransformResponse: false });
  }

  /**
   * 删除
   *
   * @author lichenhui
   * @date 2024/03/21 11:24
   */
  static del(params) {
    return defHttp.post({ url: '/household/delete', params }, { isTransformResponse: false });
  }

  /**
   * 修改
   *
   * @author lichenhui
   * @date 2024/03/21 11:24
   */
  static edit(params) {
    return defHttp.post({ url: '/household/edit', params }, { isTransformResponse: false });
  }

  /**
   * 查看详情
   *
   * @author lichenhui
   * @date 2024/03/21 11:24
   */
  static detail(params) {
    return defHttp.get({ url: '/household/detail', params });
  }
}
